package com.javaxxf.service.Impl;

import com.javaxxf.dao.UserDao;
import com.javaxxf.pojo.User;
import com.javaxxf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @author xuxiaofei
 * @date 2021年09月30日下午12:21
 * @联系作者：如果你有什么不懂，可以加作者微信 xxf960513 一起交流学习
 */


@Service(value = "userService")
@Scope
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public void add(User user) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void update(User user) {

    }

    @Override
    public List<User> findAll() {
        return userDao.findAll();
    }

    @Override
    public User findById(Integer id) {
        return userDao.findById(id);
    }
}


